package cn.java.Concurrency;

import java.util.concurrent.*;

/**
 * @author 小石潭记
 * @date 2021/12/19 10:34
 * @Description: ${todo}
 */
public class Test {
    public static void main(String[] args) throws ExecutionException, InterruptedException {
        /*BasicInfo userInfo = new BasicInfo();
        MyRunnable myRunnable = new MyRunnable(userInfo);
        ThreadPoolExecutor executor = new ThreadPoolExecutor(2, 3,
                5L, TimeUnit.SECONDS, new LinkedBlockingQueue<>());
        Future<BasicInfo> future = executor.submit(myRunnable, userInfo);
        System.out.println("start:" + System.currentTimeMillis());
        userInfo = future.get();
        System.out.println(userInfo);
        System.out.println("end:" + System.currentTimeMillis());*/

        String a = null;
        System.out.println(a.toString());

    }

}
